package com.pactera.madp.cp.mapper.beta;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pactera.madp.cp.api.entity.beta.WorkChoreographyEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @title 贝塔精编资讯业务表-MP接口定义
 * @author Deming.Chang
 * @date 2022-06-11
 */
public interface WorkChoreographyMapper extends BaseMapper<WorkChoreographyEntity> {

    /**
     * 获取今日早报数据
     * @return  返回今日早报数据
     */
    WorkChoreographyEntity selectLatestMorning();

    /**
     * 获取最近两条精编资讯数据
     * @return  返回最近两条精编资讯数据
     */
    List<WorkChoreographyEntity> selectLatestTwo();

    /**
     * 获取指定精编资讯详细信息
     * @param newsKey 资讯业务主键
     * @return  指定精编资讯详细信息
     */
    WorkChoreographyEntity selectByNewsKey(@Param("newsKey") String newsKey);

}
